<?php
/**
 * Introduction: 客服信息页面
 * @author: 王龙
 * @date: 2016/4/21 17:00
 * @email: wanglong@cdlinglu.com
 */

namespace WeChat\Controller\CustomService;


use Think\Controller;

class IndexController extends Controller
{

	/*
     ** @introduction: 客服信息
     ** @author: 王龙
     ** @date: 2015-04-21 17:37
     ** @email: wanglong@cdlinglu.com
     */
    public function service()
    {

    	$custom_service = D('Common/CustomService','Logic');

    	$result = $custom_service::getData('id>0');
    	
    	if(!$result)
    		outPut(['code'=>300,'msg'=>'客服信息获取失败']);

    	outPut(['code'=>200,'msg'=>'客服信息获取成功','data'=>$result]);

    }

}